using System;
using System.Collections.Generic;
using System.Text;

namespace SurveyHost.Core.Controls
{
    public class AnswerEventArgs : EventArgs
    {
        private Guid _questionId;

        /// <summary>
        /// The Id of the question being answered
        /// </summary>
        public Guid QuestionId
        {
            get { return _questionId; }
            set { _questionId = value; }
        }
        private string _answerText;

        /// <summary>
        /// The text of the answer
        /// </summary>
        public string AnswerText
        {
            get { return _answerText; }
            set { _answerText = value; }
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="AnswerEventArgs"/> class.
        /// </summary>
        public AnswerEventArgs() { }

        /// <summary>
        /// Initializes a new instance of the <see cref="AnswerEventArgs"/> class.
        /// </summary>
        /// <param name="id">The id of the question being answered.</param>
        /// <param name="answer">The answer.</param>
        public AnswerEventArgs(Guid id, string answer)
        {
            QuestionId = id;
            AnswerText = answer;
        }

    }
}
